package org.dromara.business.service;

import org.dromara.business.domain.Music;
import org.dromara.business.domain.vo.MusicVo;
import org.dromara.business.domain.bo.MusicBo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 音乐Service接口
 *
 * @author Lion Li
 * @date 2025-01-24
 */
public interface MusicService extends IService<Music> {

    /**
     * 查询音乐
     */
    MusicVo queryById(Long id);

    /**
     * 查询音乐列表
     */
    TableDataInfo<MusicVo> queryPageList(MusicBo bo, PageQuery pageQuery);

    /**
     * 查询音乐列表
     */
    List<MusicVo> queryList(MusicBo bo);

    /**
     * 新增音乐
     */
    Boolean insertByBo(MusicBo bo);

    /**
     * 修改音乐
     */
    Boolean updateByBo(MusicBo bo);

    /**
     * 校验并批量删除音乐信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    MusicVo getMusic();


}
